<?php

error_reporting(0);
require_once("".$_SERVER['DOCUMENT_ROOT']."/xenix/views/html.php");

$html = new Html();
$html->pageHeaderStart('Wiki:Whiski');
$html->mainStyle();
$html->Style('login');
$html->pageHeaderEnd();
$html->pageBodyStart();
$html->displayLoginMenu();
$html->displayLabel('Whiski Wiki');
?>
<div>
  <h3>Simple experimental wiki</h3>
  <h4> Feature list</h4>
  <ul>
    <li>Versioning</li>
    <li>Edit History</li>
    <li>Deletion</li>
    <li>Groups</li>
  </ul>
</div>

<?
/**
$string = 'PHP & Information Security';
printf("Original string: %s\n", $string);
printf("MD5 hash: %s\n", md5($string));
printf("SHA-1 hash: %s\n", sha1($string));
**/

/**

$start = microtime(true);
for ($i = 0; $i<=2000000;$i++){
  ob_start() ; // turm on output buffering
  echo "Hello World";
  ob_get_clean(); // clean up buffer
}

$end = microtime(true);
$time = $end - $start;
echo "<br/> Echo execution time: {$time} ";



$start = microtime(true);
for ($i = 0; $i<=2000000;$i++){
  ob_start() ; // turm on output buffering
  print "Hello World";
  ob_get_clean(); // clean up buffer
}

$end = microtime(true);
$time = $end - $start;
echo "<br/> print execution time: {$time} ";


$time_start = microtime(true);

// Sleep for a while
usleep(100);

$time_end = microtime(true);
$time = $time_end - $time_start;

echo "Did nothing in $time seconds\n";

echo "<br/>".intval(microtime(true))."";

echo "<br/>".mt_rand(100000,999999).mt_rand(100000,999999)."";
date_default_timezone_set('America/New_York');
echo "<br/><br/>  date(Y-m-d H:i:s)  : ".date("Y-m-d H:i:s");
echo "<br/><br/>  date(DATE_RFC822)  : ".date(DATE_RFC822);
**/


$html->pageFooter();
$html->pageBodyEnd();

?>